package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.SysLoginLog;
import com.yugao.fintech.draper.auth.dto.LoginLogDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface OperLogConvert {

	OperLogConvert INSTANCE = Mappers.getMapper(OperLogConvert.class);

	SysLoginLog convert(LoginLogDTO loginLogDTO);

	LoginLogDTO convert(SysLoginLog sysLoginLog);

	List<LoginLogDTO> convert(List<SysLoginLog> list);

	Page<LoginLogDTO> convert(Page<SysLoginLog> list);

}
